package com.job.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@TableName("work_info")
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("实习经历")
public class WorkInfo implements Serializable {

    @TableId
    @ApiModelProperty("工作经历id")
    private Integer id;


    @ApiModelProperty("公司")
    private String corporation;


    @ApiModelProperty("工作开始时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM",timezone="GMT+8")
    private Date workStartTime;


    @ApiModelProperty("工作结束时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM",timezone="GMT+8")
    private Date workEndTime;


    @ApiModelProperty("职位")
    private String position;


    @ApiModelProperty("工作内容")
    private String context;


    @ApiModelProperty("学生id")
    private Integer studentId;
}
